package cn.tedu.v1.controller;

import cn.tedu.v1.model.Drug;
import cn.tedu.v1.service.IDrugService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;
/**
 * <p>
 * 药品列表 前端控制器
 * </p>
 *
 * @author tedu.cn
 * @since 2021-07-06
 */
@RestController
@RequestMapping("/portal/drug")
public class DrugController {
    @Autowired
    IDrugService drugService;
    @GetMapping("/showalldrugs")
    public List<Drug> showAllDrugs(){
        return drugService.showAllDrugs();
    }
}
